require "base/operation/sqlexpr_eval"
require "base/operation.rb"

class SqlStringOperation < Operation
	condition do |context|
		context.symbol(:sqlchar_expr) ? 1 : nil
	end

	def run(context)
		sqlchar_expr = context.symbol(:sqlchar_expr)

		sqlstring_eval = framework.instanciate("base/blind/sqlstring_eval")
		result = sqlstring_eval.put( sqlchar_expr )
		logger.info "Resultado del evaluar #{sqlchar_expr}: \"#{result}\""

	end
end


